

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso8859_1" />
    
    <title>Calculate Best Matching Units</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <link rel="top" title="SOM Analyst v1 documentation" href="../../index.html" />
    <link rel="up" title="SOM Computation" href="tbSOMcomputation.html" />
    <link rel="next" title="Calculate U-Matrix" href="uiUmatrix.html" />
    <link rel="prev" title="Train SOM" href="uiVsom.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="uiUmatrix.html" title="Calculate U-Matrix"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="uiVsom.html" title="Train SOM"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">SOM Analyst v1 documentation</a> &raquo;</li>
          <li><a href="../arcgis.html" >SOM Analyst</a> &raquo;</li>
          <li><a href="tbSOMcomputation.html" accesskey="U">SOM Computation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
          <div class="body">
            
  <div class="section" id="calculate-best-matching-units">
<h1>Calculate Best Matching Units</h1>
<p>Creates a best matching unit file by projecting data onto a SOM.</p>
<div class="section" id="arcgis-reference">
<h2>ArcGIS Reference</h2>
<div class="figure">
<img alt="../../_images/bmu.png" src="../../_images/bmu.png" />
</div>
<p><strong>Parameters</strong></p>
<dl class="docutils">
<dt>SOM</dt>
<dd>The SOM on which to project data.</dd>
<dt>data to project</dt>
<dd>The data to project onto the SOM.</dd>
<dt>projected data</dt>
<dd>The ouput file to contain the projected data.</dd>
<dt>distance metric</dt>
<dd>The distance metric to use in projecting the data.</dd>
<dt>skip masked data vectors</dt>
<dd>Skip vectors that have been masked. Masking is done by begining vectors with a &#8220;x&#8221;, but this is not reccomended since SOM Analyst in several instances does matching based on line number.</dd>
<dt>read buffer</dt>
<dd>The number of lines to read at a time.</dd>
</dl>
</div>
<div class="section" id="module-uiVisual">
<span id="code-reference"></span><h2>Code Reference</h2>
<dl class="function">
<dt id="uiVisual.visual">
<tt class="descclassname">uiVisual.</tt><tt class="descname">visual</tt><big>(</big><em>cin</em>, <em>din</em>, <em>dout</em>, <em>noskip='#'</em>, <em>buffer='#'</em>, <em>path='\\bin\\SOM_PAK\\'</em><big>)</big></dt>
<dd><p>Creates a BMU file by projecting data onto a SOM.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Arguments :</th><td class="field-body"><dl class="first last docutils">
<dt>cin</dt>
<dd><p class="first last">The input codebook file.</p>
</dd>
<dt>din</dt>
<dd><p class="first last">The input data file.</p>
</dd>
<dt>dout</dt>
<dd><p class="first last">The output BMU file.</p>
</dd>
<dt>noskip <em>optional</em></dt>
<dd><p class="first last">Do not skip data vectors that have all components masked off.</p>
</dd>
<dt>buffer <em>optional</em></dt>
<dd><p class="first last">A read buffer in number of lines size.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>
</div>


          </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="uiUmatrix.html" title="Calculate U-Matrix"
             >next</a> |</li>
        <li class="right" >
          <a href="uiVsom.html" title="Train SOM"
             >previous</a> |</li>
        <li><a href="../../index.html">SOM Analyst v1 documentation</a> &raquo;</li>
          <li><a href="../arcgis.html" >SOM Analyst</a> &raquo;</li>
          <li><a href="tbSOMcomputation.html" >SOM Computation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2010, Martin Lacayo.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
    </div>
  </body>
</html>